﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Modules.guide.actions {
    import flash.events.*;

    public class GAWaitForClickAnywhere extends GuideAction {

        private function stageClickHandler(_arg1:MouseEvent):void{
            removeState(this);
        }
        override public function createFromXml(_arg1:XML):Boolean{
            return (true);
        }
        override public function enter():void{
            super.enter();
            Global.stage.addEventListener(MouseEvent.CLICK, this.stageClickHandler);
        }
        override public function reenter():void{
            super.reenter();
            Global.stage.addEventListener(MouseEvent.CLICK, this.stageClickHandler);
        }
        override public function exit():void{
            super.exit();
            Global.stage.removeEventListener(MouseEvent.CLICK, this.stageClickHandler);
        }
        override public function removed():void{
            super.removed();
            Global.stage.removeEventListener(MouseEvent.CLICK, this.stageClickHandler);
        }

    }
}//package Modules.guide.actions 
